export declare interface Note {
  path: string
  name: string
  isDir: boolean
  children: Array<Note>
  new(path: string, name: string, isDir: boolean, children: Array<Note>): this
}

export class Note implements Note {
  constructor (path: string, name: string, isDir: boolean, children: Array<Note>) {
    this.path = path
    this.name = name
    this.isDir = isDir
    this.children = children
  }
}

module.exports = { Note }
